package com.zgf.proxy;

import org.aspectj.lang.ProceedingJoinPoint;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class aop {

Product p = new ProductImpl();

public Object two(ProceedingJoinPoint pjp){
    Object rtVlue = null;

    try {

        Object[] arg=pjp.getArgs();
        rtVlue= pjp.proceed();

    } catch (Throwable throwable) {

        throwable.printStackTrace();

    }finally {
        System.out.println("后置通知！");
    }
    return rtVlue;
}



    }


